<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>问答系统</title>
	{HD include file='../common/head.html'}
	<link rel="stylesheet" href="{HD $smarty.const.__PUBLIC__}/Css/list.css" />
	<style type="text/css">
	#center a.son_cate_none{
		color:black;
		cursor:default;
	}
	#center a.son_cate_none:hover{
		text-decoration: none;
	}


	</style>
	<div id='location'>
		<a href="{HD $smarty.const.__ROOT__}?c=list&cid=0">全部分类</a>
			{HD section loop=$father_cate name=n}
			{HD if $smarty.section.n.last}
			&gt;&nbsp;{HD $father_cate[n].title}&nbsp;&nbsp;
			{HD else}
			&gt;&nbsp;<a href="{HD $smarty.const.__ROOT__}?c=list&cid={HD $father_cate[n].cid}">{HD $father_cate[n].title}</a>&nbsp;&nbsp;
			{HD  /if}
			{HD /section}
	</div>

<!--------------------中部-------------------->
	<div id='center'>
		<div id='left'>
			<div id='cate-list'>
				<p class='title'>按分类查找</p>
				<ul>
				{HD section loop=$son_cate name=m}
				{HD if $son_cate[m].cid==$smarty.get.cid}
						<li>
						<a class='son_cate_none' >{HD $son_cate[m].title}</a>
						</li>
				{HD else}
						<li>
						<a href="{HD $smarty.const.__ROOT__}?c=list&cid={HD $son_cate[m].cid}">{HD $son_cate[m].title}</a>
						</li>
				{HD /if}
					
				{HD /section}	
					
				</ul>
			</div>
			<div id='answer-list'>
				<ul class='ans-sel'>
					<li class='{HD if $smarty.get.where==0}on{HD else}{HD /if}'>
						<a href="{HD $smarty.const.__ROOT__}?c=list&cid={HD $smarty.get.cid}&where=0">待解决问题</a>
					</li>
					<li  class='{HD if $smarty.get.where==1}on{HD else}{HD /if}'>
						<a href="{HD $smarty.const.__ROOT__}?c=list&cid={HD $smarty.get.cid}&where=1">已解决</a>
					</li>
					<li class='{HD if $smarty.get.where==2}on{HD else}{HD /if}'>
						<a href="{HD $smarty.const.__ROOT__}?c=list&cid={HD $smarty.get.cid}&where=2">高悬赏</a>
					</li>
					<li class='{HD if $smarty.get.where==3}on{HD else}{HD /if}'>
						<a href="{HD $smarty.const.__ROOT__}?c=list&cid={HD $smarty.get.cid}&where=3">零回答</a>
					</li>
				</ul>
				<!-- 待解决问题 -->
				<table>
					<tr>
						<th class='t1'>标题</th>
						<th>回答数</th>
						<th>时间</th>
					</tr>
						{HD foreach from=$what key=k item=v}
						<tr>
							<td class='t1 cons'>
								<a href="{HD $smarty.const.__ROOT__}?c=show&asid={HD $v.asid}">
									<b>{HD $v.reward}</b>{HD $v.content}</a>&nbsp;&nbsp;[{HD $v.title}]
							</td>
							<td>{HD $v.answer}</td>
							<td>{HD $v.time}</td>
						</tr>
						{HD /foreach}
				</table>

			</div>
		</div>

		<!-- 右侧 -->
			{HD include file='../common/right.html'}
<!-- ---右侧结束---- -->
	</div>
<!--------------------中部结束-------------------->

<!-- 底部 -->
	<div id='bottom'>
		<p>Copyright © 2013 Qihoo.Com All Rights Reserved 廖东廷</p>
		<p>京公安网备xxxxxxxxxxxx</p>
	</div>
<!--[if IE 6]>
    <script type="text/javascript" src="{HD $smarty.const.__PUBLIC__}/Js/iepng.js"></script>
    <script type="text/javascript">
    	DD_belatedPNG.fix('.logo','background');
        DD_belatedPNG.fix('.nav-sel a','background');
        DD_belatedPNG.fix('.ask-cate i','background');
    </script>
<![endif]-->
</body>
</html>
<!-- 底部结束 -->